package com.hs.android.fortress.net;

import java.io.IOException;

import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

public class GetMethodCommand extends NetworkCommand{

	private String mUrl;
	
	public GetMethodCommand(String remainUrl) {
		mUrl = BASIC_URL + remainUrl;
	}
	
	@Override
	public HttpResponse callMethod() throws ClientProtocolException, IOException {
		HttpClient client = new DefaultHttpClient();
		HttpGet get= new HttpGet(mUrl);
		get.setHeader("Accept","application/json");
		
		
		return client.execute(get);
	}

}
